#include <linux/init.h>
#include <linux/module.h>

static int debug = 1;
module_param(debug,int,0644);
MODULE_PARM_DESC(debug,"enable the debug informaton");

#define dprintk(args ...)\
	if(debug){\
		printk(KERN_DEBUG args);\
	}
static int mytest = 100;
module_param(mytest,int,0644);
MODULE_PARM_DESC(mytest,"test param");


static int __init my_test_init(void)
{
	dprintk("hello module init \n");
	dprintk("mytest = %d\n",mytest);
	return 0;
}

static void __exit my_test_exit(void)
{
	printk("bye bye\n");
}
module_init(my_test_init);
module_exit(my_test_exit);


MODULE_LICENSE("GPL");
//MODULE_AUTHOR("zheng");



